package com.chee.plant.exception;

public class PlantException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int _code;
	private String _extraMessage;
	public PlantException(int code){
		this._code = code;
		this._extraMessage = "";
	}
	public PlantException(int code,String extraMessage){
		this._code = code;
		this._extraMessage = extraMessage;
	}
	public String getMessage(){
		return ExceptionMessage.get(this._code);
	}
	public String getExtra(){
		return this._extraMessage;
	}
}
